<?php

class Kd_Validation_Rule_Email extends Kd_Validation_Rule_Base {

    public function __construct(){
        parent::__construct();
    }

    public function getType() {
        return 'email';
    }

    public function check($value) {
        return preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $value) > 0;
    }
}